package com.hqyj.controller;

import org.springframework.web.bind.annotation.*;

/**
 * @Description
 * @Autor 伍军
 * @Date 2022/9/8 9:28
 * @Version 1.0
 **/
@RestController
@RequestMapping("/testAjax")
public class TestAjaxController {

    @GetMapping("/test01")
    public String test01(String name){
        System.out.println("name="+name);
        return "hello";
    }

    @PostMapping("/test02")
    public String test02(String name){
        System.out.println("name="+name);
        return "hello";
    }
}
